package gc;import java.util.ArrayList;import java.util.List;/** * @Author: Beating Pupils * @Date: 2020/7/29 23:37 * @Description: 用mat分析内存泄漏 */public class OOM2Mat {    public static void main(String[] args) throws InterruptedException {        List<Data> list = new ArrayList<>();        for (int i = 0; i < 10000; i++) {            list.add(new Data());        }        Thread.sleep(60*60*1000);    }    static class Data{            }}